package com.ms.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "user_stats")
public class UserStats implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id")
    private Integer userId;

    @TableField("followers_count")
    private Integer followersCount = 0;

    @TableField("following_count")
    private Integer followingCount = 0;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}